#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"
#include <QListView>
#include <QDeclarativeContext>
#include <QDesktopServices>
#include <QDeclarativeEngine>
#include <QDebug>
#include "filesystemmodel.h"
#include "ftpmodel.h"
#include "fileiconprovider.h"
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QmlApplicationViewer viewer;

    FtpModel * ftpModel = new FtpModel;
    FileSystemModel * systemModel = new FileSystemModel;

   systemModel->setRootPath("C:");


    QDeclarativeContext *ctxt = viewer.rootContext();
    ctxt->setContextProperty("ftpModel", ftpModel);
   ctxt->setContextProperty("systemModel", systemModel);

   viewer.engine()->addImageProvider(QLatin1String("icons"), new FileIconProvider);


    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);
    viewer.setMainQmlFile(QLatin1String("qml/cuteftp/main.qml"));
    viewer.showFullScreen();




//    model->connectToHost("www.omed-soft.com");
//    model->login("dridk","4RueDesRoses");








    return app.exec();
}
